OGLX notebook 5
hnxj@github
Load toolboxes
clear;clc;close
all
;
cd(
'D:\Electrophysiology\Matdelane\'
);
addpath(genpath(
'matnwb'
));
addpath(genpath(
'matdelane'
));
addpath(genpath(
'flipv2'
));
generateCore();
addpath(
'fieldtrip'
);ft_defaults;
nwbPath =
"data\"
;
nwbFiles = {dir(nwbPath).name};
nwbFiles = nwbFiles(endsWith(nwbFiles,
".nwb"
));
disp(
"Toolbox setup done."
);
Toolbox setup done.
nwbFile = nwbPath + nwbFiles{7};
nwb = nwbRead(nwbFile);
disp(
"Loaded"
+ nwbFile);
Loadeddata\sub-C31o_ses-230831.nwb
disp(
"Probe N = "
+ num2str(length(nwb.general_extracellular_ephys.values())));
Probe N = 3
chrsp1 = jReceptiveFieldMap(nwb, 1);
-> 3 Probes detected in sub-C31o_ses-230831 -->This function will process only probe no.1 (FEF)
chrsp2 = jReceptiveFieldMap(nwb, 2);
-> 3 Probes detected in sub-C31o_ses-230831 -->This function will process only probe no.2 (MT, MST)